package iceCream.core.base
{
	import com.adobe.utils.PerspectiveMatrix3D;
	
	import flash.geom.Matrix3D;
	
	/**
	 * Project : IceCream
	 * IC_Camer
	 * @author 赵俊 <zhaojun@crop.the9.com>  
	 * $Id:$
	 * @version 1.0
	 */
	public class IC_Camera3D extends IC_Object3D
	{
		private var _left:Number;
		private var _right:Number;
		private var _bottom:Number;
		private var _top:Number;
		private var _znear:Number;
		private var _zfar:Number;
		
		public var matrix:PerspectiveMatrix3D;
		
		public function IC_Camera3D(left:Number,right:Number,bottom:Number,top:Number,znear:Number,zfar:Number)
		{
			super();
			matrix = new PerspectiveMatrix3D();
			_left = left;
			_right = right;
			_bottom = bottom;
			_top = top;
			_znear = znear;
			_zfar = zfar;
			matrix.perspectiveOffCenterRH(_left,_right,_bottom,_top,_znear,_zfar);
		}
	}
} 
